#include <stdio.h>
//观察数字规律
int main(int argc, char const *argv[])
{
	int spaceNo,starNo,n;
	scanf("%d",&n);
	for (int i = 1; i <=n; ++i)
	{
		spaceNo=i-1;
		for (int j = 0; j < spaceNo; ++j)
		{
			printf(" ");
		}
		starNo=1+2*(n-i);
		for (int k = 0; k < starNo; ++k)
		{
			 printf("#");
		}
		printf("\n");
	}
	return 0;
}